package com.ruoyi.jeeplus.modules.screen.wlw.wlw_screen_fire_alarm.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.mqtt.MqttPushClient;
import com.ruoyi.jeeplus.modules.screen.fire_alarm.domain.fire_alarm;
import com.ruoyi.jeeplus.modules.screen.wlw.wlw_screen_fire_alarm.service.impl.Wlw_screen_fire_alarmServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@RestController
public class Wlw_screen_fire_alarmController extends BaseController {

    @Autowired
    MqttPushClient mqttPushClient;
    @GetMapping("/lay/155")
    public String list()
    {
        //测试开始
//        mqttPushClient.publish(1,false,"/d","FF FF 00 00 00 00 00 00  FE");
//        mqttPushClient.publish(1,false,"/t","ok");
        mqttPushClient.publishHex(1,false,"/d","FFFF000000000000FE");
//        mqttPushClient.publishHex(1, false, "/d", "48656C6C6F");

        //测试结束
         return "null";
    }
}
